﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true"
    ValidateRequest="false" CodeFile="Footer.aspx.cs" Inherits="Admin_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainPlace" runat="Server">
    <script type="text/javascript">
        function dosub() {
            editor = top.document.getElementById(editorId);
            editor.value = richeditor.toHtmlString();

        }     
    </script>
    <div class="Content">
        <asp:HiddenField ID="hfID" runat="server" />
        <div style="float: left;width: 400px;">
        <asp:Label runat="server" ID="label1" Text="Левый блок"></asp:Label><br />
         <asp:TextBox style="text-align:right;" ID="txtLeftBlock" runat="server" Width="300px" Height="150px" TextMode="MultiLine"></asp:TextBox><br />
        </div>
        <div style="float: left;width: 400px;">
        <asp:Label runat="server" ID="label2" Text="Правый блок"></asp:Label><br />
        <asp:TextBox style="text-align:right;" ID="txtRightBlock" runat="server" Width="300px" Height="150px" TextMode="MultiLine"></asp:TextBox><br />
        </div>
        <br />
        <asp:Button ID="btnArticleSave" runat="server" Text="Сохранить" OnClick="btnArticleSave_Click"
            OnClientClick="CopyText()" />
    </div>
    <div>
     <asp:GridView runat="server" ID="dgIcons" AutoGenerateColumns="false" OnRowEditing="dgIcons_RowEditing"
            OnRowCancelingEdit="dgEmployees_RowCancelingEdit" OnRowUpdating="dgIcons_RowUpdating" ShowFooter="true"
            OnRowDeleting="dgIcons_RowDeleting" AllowPaging="false">
            <EmptyDataTemplate>
            <table>
                <tr style="background-color: #808080">
                    <td style="color: White; font-weight: bold;">
                         <%=FUNC.GetPhrase(20) %>
                    </td>
                    <td style="color: White; font-weight: bold;">
                          <%=FUNC.GetPhrase(21) %>
                    </td>
                    <td style="color: White; font-weight: bold;">
                       <%=FUNC.GetPhrase(22) %>
                    </td>
                    <td style="color: White; font-weight: bold;">
                       <%=FUNC.GetPhrase(23) %>
                    </td>
                </tr>
                <tr style="background-color: #CCCC99">
                    <td>
                      <asp:Button ID="btnFooterSave" runat="server" Text="Добавить" OnClick="btnFooterSave_Click" />
                    </td>
                    <td>
                        <asp:TextBox ID="txtNavigateURL" runat="server" Width="450px" Text=""></asp:TextBox>
                    </td>
                    <td>
                        <asp:FileUpload runat="server" ID="uplIcon" />
                        
                    </td>
                     <td>
                        <asp:FileUpload runat="server" ID="uplIconHover" />
                    </td>
                </tr>
            </table>
        </EmptyDataTemplate>
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <div>
                            <%=FUNC.GetPhrase(22) %></div>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:HiddenField runat="server" ID="hfID" Value='<%# Eval("ID") %>' />
                        <img alt="photo" src='../Content/galery/<%# Eval("Icon") %>'/>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:HiddenField runat="server" ID="hfIcon" Value='<%# Eval("Icon") %>' />
                        <asp:FileUpload runat="server" ID="uplIcon" />
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:FileUpload runat="server" ID="uplIcon" />
                    </FooterTemplate>
                </asp:TemplateField>
                  <asp:TemplateField>
                    <HeaderTemplate>
                        <div>
                            <%=FUNC.GetPhrase(23) %></div>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <img alt="photo" src='../Content/galery/<%# Eval("IconHover") %>'/>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:HiddenField runat="server" ID="hfIconHover" Value='<%# Eval("IconHover") %>' />
                        <asp:FileUpload runat="server" ID="uplIconHover" />
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:FileUpload runat="server" ID="uplIconHover" />
                    </FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <div>
                            <%=FUNC.GetPhrase(21) %></div>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:Label runat="server" ID="lblNavURL" Text='<%# Eval("NavigateUrl")  %>'></asp:Label>
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:TextBox ID="txtNavigateURL" runat="server" Width="450px" Text='<%# Eval("NavigateUrl")%>'></asp:TextBox>
                    </EditItemTemplate>
                     <FooterTemplate>
                        <asp:TextBox ID="txtNavigateURL" runat="server" Width="450px" Text=""></asp:TextBox>
                    </FooterTemplate>
                </asp:TemplateField>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <div>
                            <%=FUNC.GetPhrase(20) %></div>
                    </HeaderTemplate>
                    <ItemTemplate>
                       <asp:Button ID="btnChange" runat="server" Text="Изменить" CommandName="Edit" />
                       <asp:Button ID="btnDelete" runat="server" Text="Удалить" CommandName="Delete" />
                    </ItemTemplate>
                    <EditItemTemplate>
                        <asp:Button ID="btnCancel" runat="server" Text="Назад" CommandName="Cancel" />
                       <asp:Button ID="btnSave" runat="server" Text="Сохранить" CommandName="Update" />
                    </EditItemTemplate>
                    <FooterTemplate>
                        <asp:Button ID="btnFooterSave" runat="server" Text="Добавить" OnClick="btnFooterSave_Click" />
                    </FooterTemplate>
                </asp:TemplateField>
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
